package com.tjzx.entity;

/**
 * StExamQuestionId entity. @author MyEclipse Persistence Tools
 */

public class StExamQuestionId implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer qusetionId;
	private Integer examId;
	private Double qusetionScore;

	// Constructors

	/** default constructor */
	public StExamQuestionId() {
	}

	/** full constructor */
	public StExamQuestionId(Integer id, Integer qusetionId, Integer examId,
			Double qusetionScore) {
		this.id = id;
		this.qusetionId = qusetionId;
		this.examId = examId;
		this.qusetionScore = qusetionScore;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getQusetionId() {
		return this.qusetionId;
	}

	public void setQusetionId(Integer qusetionId) {
		this.qusetionId = qusetionId;
	}

	public Integer getExamId() {
		return this.examId;
	}

	public void setExamId(Integer examId) {
		this.examId = examId;
	}

	public Double getQusetionScore() {
		return this.qusetionScore;
	}

	public void setQusetionScore(Double qusetionScore) {
		this.qusetionScore = qusetionScore;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof StExamQuestionId))
			return false;
		StExamQuestionId castOther = (StExamQuestionId) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getQusetionId() == castOther.getQusetionId()) || (this
						.getQusetionId() != null
						&& castOther.getQusetionId() != null && this
						.getQusetionId().equals(castOther.getQusetionId())))
				&& ((this.getExamId() == castOther.getExamId()) || (this
						.getExamId() != null
						&& castOther.getExamId() != null && this.getExamId()
						.equals(castOther.getExamId())))
				&& ((this.getQusetionScore() == castOther.getQusetionScore()) || (this
						.getQusetionScore() != null
						&& castOther.getQusetionScore() != null && this
						.getQusetionScore()
						.equals(castOther.getQusetionScore())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37
				* result
				+ (getQusetionId() == null ? 0 : this.getQusetionId()
						.hashCode());
		result = 37 * result
				+ (getExamId() == null ? 0 : this.getExamId().hashCode());
		result = 37
				* result
				+ (getQusetionScore() == null ? 0 : this.getQusetionScore()
						.hashCode());
		return result;
	}

}